package cn.tedu.antconlonysever.contract.dao.persist.repository;

import cn.tedu.antcolonycommons.pojo.vo.PageData;
import cn.tedu.antconlonysever.contract.pojo.entity.Respite;
import cn.tedu.antconlonysever.contract.pojo.vo.RespiteListVO;
import cn.tedu.antconlonysever.contract.pojo.vo.RespiteStandardVO;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;

public interface IRespiteRepository {
    int insert(Respite respite);
    int insertBatch(List<Respite> respitesList);
    int deleteById(Long id);
    int deleteByIds(Collection<Long> idList);
    int update(Respite respite);
    int count();
    int countLossId(Long lossId);
    int countLossIdNotId(@Param("id")Long id,@Param("loss_id") Long lossId);
    RespiteStandardVO getStandardById(Long id);
    PageData<RespiteListVO> list(Integer pageNum, Integer pageSize);
}
